<html>
<head>
<script src="/static/js/jsaes.js"></script>
<script src="/static/js/lib.js"></script>
<script>
function enc() {
	var s = document.getElementById('box').value;
	var passwd = document.getElementById('box2').value;
	document.getElementById('res').innerHTML = AegisEncrypt(s, passwd);
	cleanInternel();
};
function dec() {
	var s = document.getElementById('box').value;
	var passwd = document.getElementById('box2').value;
	document.getElementById('res').innerHTML = AegisDecrypt(s, passwd);
	cleanInternel();
};
</script>
</head>
<body>
<input id="box" />
<input id="box2" />
<br />
<input type="submit" value="encypt" onclick="enc();" />
<input type="submit" value="decypt" onclick="dec();" />
<input type="submit" value="clean" onclick="cln();" />
<br />
<div id="res"></div>
</body>
</html>
